Skip to content

Count a returned card's spend from HCB's totals, and pay the cap less all spend - #412

Merged
Heliodex merged 6 commits into
prodfrom
release/return-spend
Nov 27, 2026
Merged

Heliodex merged 6 commits into
prodfrom
release/return-spend

Conversation

@Heliodex

Copy link
Copy Markdown
Member

A returned card's spend could not be read after the return, so designs were skipped with 'HCB could not say what the card has spent yet'. Spend is now worked out when the return is recorded: granted (the card's amount, every top-up, and any amount over the tier) less the balance HCB sent back. The coin pass pays the cap less that spend, with no clamp to the issued amount. Top-ups count as spend, but they do not raise the cap. Checks: bun check clean, 847 tests pass.

@Heliodex
Heliodex force-pushed the release/return-spend branch from 97755b0 to 4de1a41 Compare November 27, 2026 19:34
@Heliodex
Heliodex merged commit 3f1749e into prod Nov 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant